window.onload = function () {
    var topSwiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        autoplayDisableOnInteraction: false,
        direction: 'horizontal',
        paginationClickable: true,
        slideToClickedSlide: true,
        loop: true,
        autoplay: 2000
    });

    var adSwiper = new Swiper('.ad-swiper-container', {
        pagination: '.swiper-pagination',
        autoplayDisableOnInteraction: false,
        direction: 'horizontal',
        paginationClickable: true,
        slideToClickedSlide: true,
        loop: true,
        autoplay: 2000
    });

}